package org.cjprods.ars.filters;

import java.io.IOException;
import java.io.UnsupportedEncodingException;
import javax.servlet.*;

public class encoding implements Filter
{
    @Override public void init(FilterConfig filterConfig) {}
    @Override public void destroy() {}

    @Override
    public void doFilter(ServletRequest request,
                         ServletResponse response,
                         FilterChain chain) throws UnsupportedEncodingException, IOException, ServletException
    {
        request .setCharacterEncoding("UTF-8");
        response.setCharacterEncoding("UTF-8");
        chain.doFilter(request, response);
    }
}

